<?php
require_once '../Model/Geolocation/OPPosition.php';
require_once '../Model/Player/OPPlayer.php';

class NewPlayerTest extends PHPUnit_Framework_TestCase {
	
	/**
	* @test
	*/
	public function PlayerShouldHaveAnIdAndAPosition() {
		$playerPosition = OPPosition::newWithLatitudeLongitude(10, 10);
		
		$player = OPPlayer::newWithIdAndPosition('1', $playerPosition);
		
        $this->assertEquals('1', $player->id());
        $this->assertEquals($playerPosition, $player->position());
				
	}
	
	
	
}